﻿@model IEnumerable<AdminLite.Models.UserListViewModel>
@using PagedList
@using PagedList.Mvc;  
@{
    ViewBag.Title = "用户管理";
}

<div class="box">
    <div class="box-header with-border">
        <h3 class="box-title">用户列表</h3>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="table table-bordered table-striped">
            <tr>
                <th style="width: 10px"></th>
                <th>@Html.DisplayNameFor(model => model.UserName)</th>
                <th>@Html.DisplayNameFor(model => model.Email)</th>
                <th>@Html.DisplayNameFor(model => model.PhoneNumber)</th>
                <th>@Html.DisplayNameFor(model => model.CreatTime)</th>
                <th style="width: 150px">操作</th>
            </tr>
@foreach (var item in Model)
{
    <tr>
        <td>1</td>
        <td>@Html.DisplayFor(modelItem => item.UserName)</td>
        <td>@Html.DisplayFor(modelItem => item.Email)</td>
        <td>@Html.DisplayFor(modelItem => item.PhoneNumber)</td>
        <td>@Html.DisplayFor(modelItem => item.CreatTime)</td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id = item.Id }) |
            @Html.ActionLink("详情", "Details", new { id = item.Id }) |
            @Html.ActionLink("删除", "Delete", new { id = item.Id })
        </td>
    </tr>
}
         
        </table>
    </div>
    <!-- /.box-body -->
    <div class="box-footer clearfix">
        @Html.PagedListPager((IPagedList) Model, page => Url.Action("Index", new {page}))
    </div>
</div>
